package com.huanzhidadi.single.parentsubclass;

public class ParentClass {

    static {
        System.out.println("父类静态块2");
    }
    static {
        System.out.println("父类静态块1");
    }

    public ParentClass() {
        System.out.println("父类构造方法");
    }

    {
        System.out.println("父类非静态代码块2");
    }
    {
        System.out.println("父类非静态代码块1");
    }

    public void doSth() {
        System.out.println("父类方法");
    }

    public static void main(String[] args) {
        SubClass subClass = new SubClass();
        subClass.doSth();
    }
}
